#include <iostream>
#include "SparseGraph.h"
#include "DenseGrpah.h"
#include "ReadGraph.h"

using namespace std;
int main() {
    string filename = "testG1.txt";
    SparseGraph g1(13, false);
    ReadGraph<SparseGraph> readGraph1(g1, filename);
    cout<<"test G1 in Sparse Graph:"<<endl;
    g1.show();

    cout<<endl;

    DenseGrpah g2(13, false);
    ReadGraph<DenseGrpah> readGraph2(g2, filename);
    cout<<"test G1 in Dense Graph: "<<endl;
    g2.show();

    cout<<endl;

    filename = "testG2.txt";
    SparseGraph g3(6, false);
    ReadGraph<SparseGraph> readGraph3(g3, filename);
    cout << "test G2 in Sparse Graph: " << endl;
    g3.show();

    cout<<endl;

    DenseGrpah g4(6, false);
    ReadGraph<DenseGrpah> readGraph4(g4, filename);
    cout<<"test G2 in Dense Graph: "<<endl;
    g4.show();
    return 0;
}